package com.iocup.keybastion.authorize.element;

import lombok.Getter;

import java.util.List;

/**
 * 注解式权限元素提供者
 *
 * @author xyjxust
 * @create 2022/3/2 12:53
 **/
public class AnnotationAuthElementProvider implements AuthElementProvider {

    @Getter
    private AuthElementStore elementStore = new InMemoryAuthElementStore();


    @Override
    public List<AuthElement> getAuthElement() {
        return elementStore.getAll();
    }

    @Override
    public List<AuthElement> getAuthElement(String key) {
        return elementStore.get(key);
    }
}
